package com.hr.controller;
import com.hr.pojo.TeacherUser;
import com.hr.service.IconServiceMapper;
import com.hr.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/user")
public class IconController {
    @Autowired
    private IconServiceMapper iconServiceMapper;
    @GetMapping("/usermessage")
    public SysResult getIconById(){
        List<TeacherUser> userList = iconServiceMapper.findAll();
        return SysResult.success(userList);
    }
}
